package com.jc.ds.model;

/**
 * supplier_goods_picture_list
 * @author 
 */
public class SupplierGoodsPictureList extends BaseValueObject {
    private Long id;

    /**
     * 关联supplier_goods 表主键
     */
    private Long gid;

    /**
     * SKU规格图片
     */
    private String imagePath;

    /**
     * 私有云图片地址
     */
    private String selfImagePath;

    /**
     * 宽度 像素
     */
    private Integer width;

    /**
     * 高度 像素
     */
    private Integer height;

    /**
     * 图片类型 1 产品轮播图 2 产品详情图
     */
    private Integer imageType;

    /**
     * 图片排序 在页面上面的显示顺序 如果不排序默认0
     */
    private Integer imageOrder;

    /**
     * 供应商产品ID
     */
    private String goodsId;

    private String extend1;

    private String extend2;

    private String extend3;

    private String extend4;

    private String extend5;

    private String orderStr = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGid() {
        return gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getSelfImagePath() {
        return selfImagePath;
    }

    public void setSelfImagePath(String selfImagePath) {
        this.selfImagePath = selfImagePath;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getImageType() {
        return imageType;
    }

    public void setImageType(Integer imageType) {
        this.imageType = imageType;
    }

    public Integer getImageOrder() {
        return imageOrder;
    }

    public void setImageOrder(Integer imageOrder) {
        this.imageOrder = imageOrder;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getExtend1() {
        return extend1;
    }

    public void setExtend1(String extend1) {
        this.extend1 = extend1;
    }

    public String getExtend2() {
        return extend2;
    }

    public void setExtend2(String extend2) {
        this.extend2 = extend2;
    }

    public String getExtend3() {
        return extend3;
    }

    public void setExtend3(String extend3) {
        this.extend3 = extend3;
    }

    public String getExtend4() {
        return extend4;
    }

    public void setExtend4(String extend4) {
        this.extend4 = extend4;
    }

    public String getExtend5() {
        return extend5;
    }

    public void setExtend5(String extend5) {
        this.extend5 = extend5;
    }

    public void orderById(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by id asc";
            }else{
                this.orderStr = this.orderStr + ",id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by id desc";
            }else{
                this.orderStr = this.orderStr + ",id desc";
            }
        }
    }

    public void orderByGid(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by gid asc";
            }else{
                this.orderStr = this.orderStr + ",gid asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by gid desc";
            }else{
                this.orderStr = this.orderStr + ",gid desc";
            }
        }
    }

    public void orderByImagePath(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by image_path asc";
            }else{
                this.orderStr = this.orderStr + ",image_path asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by image_path desc";
            }else{
                this.orderStr = this.orderStr + ",image_path desc";
            }
        }
    }

    public void orderBySelfImagePath(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by self_image_path asc";
            }else{
                this.orderStr = this.orderStr + ",self_image_path asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by self_image_path desc";
            }else{
                this.orderStr = this.orderStr + ",self_image_path desc";
            }
        }
    }

    public void orderByWidth(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by width asc";
            }else{
                this.orderStr = this.orderStr + ",width asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by width desc";
            }else{
                this.orderStr = this.orderStr + ",width desc";
            }
        }
    }

    public void orderByHeight(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by height asc";
            }else{
                this.orderStr = this.orderStr + ",height asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by height desc";
            }else{
                this.orderStr = this.orderStr + ",height desc";
            }
        }
    }

    public void orderByImageType(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by image_type asc";
            }else{
                this.orderStr = this.orderStr + ",image_type asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by image_type desc";
            }else{
                this.orderStr = this.orderStr + ",image_type desc";
            }
        }
    }

    public void orderByImageOrder(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by image_order asc";
            }else{
                this.orderStr = this.orderStr + ",image_order asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by image_order desc";
            }else{
                this.orderStr = this.orderStr + ",image_order desc";
            }
        }
    }

    public void orderByGoodsId(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by goods_id asc";
            }else{
                this.orderStr = this.orderStr + ",goods_id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by goods_id desc";
            }else{
                this.orderStr = this.orderStr + ",goods_id desc";
            }
        }
    }

    public void orderByExtend1(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by extend1 asc";
            }else{
                this.orderStr = this.orderStr + ",extend1 asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by extend1 desc";
            }else{
                this.orderStr = this.orderStr + ",extend1 desc";
            }
        }
    }

    public void orderByExtend2(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by extend2 asc";
            }else{
                this.orderStr = this.orderStr + ",extend2 asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by extend2 desc";
            }else{
                this.orderStr = this.orderStr + ",extend2 desc";
            }
        }
    }

    public void orderByExtend3(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by extend3 asc";
            }else{
                this.orderStr = this.orderStr + ",extend3 asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by extend3 desc";
            }else{
                this.orderStr = this.orderStr + ",extend3 desc";
            }
        }
    }

    public void orderByExtend4(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by extend4 asc";
            }else{
                this.orderStr = this.orderStr + ",extend4 asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by extend4 desc";
            }else{
                this.orderStr = this.orderStr + ",extend4 desc";
            }
        }
    }

    public void orderByExtend5(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by extend5 asc";
            }else{
                this.orderStr = this.orderStr + ",extend5 asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by extend5 desc";
            }else{
                this.orderStr = this.orderStr + ",extend5 desc";
            }
        }
    }
}